package monopd;

import java.io.*;
import java.util.ArrayList;
import java.util.Scanner;

// Generic file reader class
// Created by Nikolas Wolfe, August 2, 1978

class ReadFile 
{
	public File fileInput;
	public FileReader fileReader;
	public Scanner scanner;
	
	public ReadFile(File fileInput) 
	{
		this.fileInput = fileInput;
		
		try {
			fileReader = new FileReader(this.fileInput);
			scanner = new Scanner(fileReader);
		} catch (Exception e) {}
	}

	public ArrayList<String> readInput( ArrayList<String> list )
	{
		try 
		{
			while(scanner.hasNextLine())
			{
				list.add( scanner.nextLine() );
			}
			
		} catch (Exception e){}
		
		return list;
	}
}
